/*
  ==============================================================================

  This is an automatically generated file created by the Jucer!

  Creation date:  5 May 2008 7:57:03 pm

  Be careful when adding custom code to these files, as only the code within
  the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
  and re-saved.

  Jucer version: 1.11

  ------------------------------------------------------------------------------

  The Jucer is part of the JUCE library - "Jules' Utility Class Extensions"
  Copyright 2004-6 by Raw Material Software ltd.

  ==============================================================================
*/

//[Headers] You can add your own extra header files here...
//[/Headers]

#include "ThorAbout.h"


//[MiscUserDefs] You can add your own user definitions and misc code here...
//[/MiscUserDefs]

//==============================================================================
ThorAbout::ThorAbout ()
    : Component (T("About Thor")),
      label (0),
      hyperlinkButton (0),
      internalCachedImage2 (0)
{
    addAndMakeVisible (label = new Label (T("new label"),
                                          T("Thor v2")));
    label->setFont (Font (24.0000f, Font::bold));
    label->setJustificationType (Justification::centredLeft);
    label->setEditable (false, false, false);
    label->setColour (Label::textColourId, Colour (0xff6b6b6b));
    label->setColour (TextEditor::textColourId, Colours::black);
    label->setColour (TextEditor::backgroundColourId, Colour (0x0));

    addAndMakeVisible (hyperlinkButton = new HyperlinkButton (String::empty,
                                                              URL (T("http://sndlab.com"))));
    hyperlinkButton->setTooltip (T("http://sndlab.com"));

    internalCachedImage2 = ImageCache::getFromMemory (news_item_pic_png, news_item_pic_pngSize);

    //[UserPreSize]
    //[/UserPreSize]

    setSize (256, 128);

    //[Constructor] You can add your own custom stuff here..
    //[/Constructor]
}

ThorAbout::~ThorAbout()
{
    //[Destructor_pre]. You can add your own custom destruction code here..
    //[/Destructor_pre]

    deleteAndZero (label);
    deleteAndZero (hyperlinkButton);
    ImageCache::release (internalCachedImage2);

    //[Destructor]. You can add your own custom destruction code here..
    //[/Destructor]
}

//==============================================================================
void ThorAbout::paint (Graphics& g)
{
    //[UserPrePaint] Add your own custom painting code here..
    //[/UserPrePaint]

    GradientBrush gradient_1 (Colour (0xff343434),
                              (float) ((getWidth() / 2)), 0.0f,
                              Colours::black,
                              (float) ((getWidth() / 2)), 128.0f,
                              false);
    g.setBrush (&gradient_1);
    g.fillRect (0, 0, proportionOfWidth (1.0000f), proportionOfHeight (1.0000f));

    g.setColour (Colours::black);
    g.drawImage (internalCachedImage2,
                 23, 44, 119, 37,
                 0, 0, internalCachedImage2->getWidth(), internalCachedImage2->getHeight());

    //[UserPaint] Add your own custom painting code here..
    //[/UserPaint]
}

void ThorAbout::resized()
{
    label->setBounds (152, 50, 88, 24);
    hyperlinkButton->setBounds (25, 16, 111, 88);
    //[UserResized] Add your own custom resize handling here..
    //[/UserResized]
}



//[MiscUserCode] You can add your own definitions of your custom methods or any other code here...
//[/MiscUserCode]


//==============================================================================
#if 0
/*  -- Jucer information section --

    This is where the Jucer puts all of its metadata, so don't change anything in here!

BEGIN_JUCER_METADATA

<JUCER_COMPONENT documentType="Component" className="ThorAbout" componentName="About Thor"
                 parentClasses="public Component" constructorParams="" variableInitialisers=""
                 snapPixels="8" snapActive="1" snapShown="1" overlayOpacity="0.330000013"
                 fixedSize="1" initialWidth="256" initialHeight="128">
  <BACKGROUND backgroundColour="ffffff">
    <RECT pos="0 0 100% 100%" fill="linear: 0C 0, 0C 128, 0=ff343434, 1=ff000000"
          hasStroke="0"/>
    <IMAGE pos="23 44 119 37" resource="news_item_pic_png" opacity="1" mode="0"/>
  </BACKGROUND>
  <LABEL name="new label" id="ea1afd78af917e5e" memberName="label" virtualName=""
         explicitFocusOrder="0" pos="152 50 88 24" textCol="ff6b6b6b"
         edTextCol="ff000000" edBkgCol="0" labelText="Thor v2" editableSingleClick="0"
         editableDoubleClick="0" focusDiscardsChanges="0" fontname="Default font"
         fontsize="24" bold="1" italic="0" justification="33"/>
  <HYPERLINKBUTTON name="new hyperlink" id="426b85a62c29588f" memberName="hyperlinkButton"
                   virtualName="" explicitFocusOrder="0" pos="25 16 111 88" tooltip="http://sndlab.com"
                   buttonText="" connectedEdges="0" needsCallback="0" radioGroupId="0"
                   url="http://sndlab.com"/>
</JUCER_COMPONENT>

END_JUCER_METADATA
*/
#endif

//==============================================================================
// Binary resources - be careful not to edit any of these sections!

// JUCER_RESOURCE: news_item_pic_png, 2746, "C:\Documents and Settings\kubiakr\Moje dokumenty\news_item_pic.png"
static const unsigned char resource_ThorAbout_news_item_pic_png[] = { 137,80,78,71,13,10,26,10,0,0,0,13,73,72,68,82,0,0,0,118,0,0,0,36,8,6,0,0,0,92,225,206,237,0,0,0,1,115,82,71,66,0,174,206,28,233,0,
0,0,6,98,75,71,68,0,255,0,255,0,255,160,189,167,147,0,0,0,9,112,72,89,115,0,0,11,19,0,0,11,19,1,0,154,156,24,0,0,0,7,116,73,77,69,7,216,5,5,14,22,59,106,138,58,89,0,0,0,25,116,69,88,116,67,111,109,109,
101,110,116,0,67,114,101,97,116,101,100,32,119,105,116,104,32,71,73,77,80,87,129,14,23,0,0,10,21,73,68,65,84,120,218,237,155,75,76,92,215,25,128,63,96,176,25,27,98,30,13,226,97,185,169,241,152,84,137,
177,81,93,19,165,38,181,149,77,199,138,170,134,70,94,164,94,212,180,94,36,173,89,180,11,171,110,43,185,27,212,72,169,90,225,69,43,53,178,23,149,213,22,36,71,85,227,32,75,77,77,10,81,77,100,5,140,235,166,
100,108,7,243,14,54,131,241,140,25,10,3,211,197,253,207,112,230,50,115,231,222,59,3,212,85,127,233,72,115,47,195,127,254,243,191,31,103,224,255,240,63,9,57,54,190,83,12,124,9,56,40,207,251,228,157,29,
24,146,5,208,3,188,15,68,29,210,248,162,182,183,29,184,46,123,221,207,18,254,30,224,61,139,191,123,128,175,58,164,17,135,231,25,2,250,179,129,108,11,240,67,224,6,16,203,242,250,51,240,29,27,52,188,4,140,
100,176,207,79,108,236,209,97,19,215,136,208,99,134,239,175,1,127,82,173,144,240,238,136,91,161,102,202,80,187,235,70,26,45,207,6,13,199,44,240,191,234,16,215,72,18,75,141,109,208,74,199,187,85,174,248,
24,240,59,253,133,183,208,195,118,95,17,187,246,149,0,80,237,43,194,91,152,111,75,67,130,147,17,130,19,17,0,110,245,207,16,232,155,49,127,37,10,28,22,119,167,195,83,192,167,0,165,21,94,26,252,149,182,
181,114,236,86,152,129,238,41,29,255,94,224,159,73,190,218,173,152,227,63,190,51,37,190,222,206,9,130,147,17,245,248,5,45,180,188,8,252,5,192,87,95,18,231,79,182,97,236,86,152,233,201,8,99,129,80,50,222,
189,12,188,147,42,62,40,120,94,23,106,105,133,151,166,150,221,212,53,150,103,64,86,226,97,35,225,40,3,221,83,92,108,27,36,18,142,170,253,127,13,236,73,34,88,0,202,42,11,240,55,215,56,218,245,141,230,171,
138,17,30,9,41,223,149,63,197,180,175,197,53,222,10,255,173,254,25,93,176,59,129,97,193,211,168,94,238,218,87,226,152,70,167,16,9,71,233,106,191,75,87,199,176,206,187,183,83,41,110,174,246,249,53,245,
161,218,87,196,169,243,207,101,40,212,213,224,45,244,208,224,175,162,165,109,63,222,194,184,78,61,11,156,16,239,145,147,141,125,142,253,232,25,253,177,25,248,6,144,151,5,252,5,192,102,193,181,174,224,
45,244,224,111,174,161,165,109,63,165,21,94,221,48,95,79,198,59,37,216,207,233,241,232,68,235,94,157,241,89,135,106,95,17,77,45,181,250,171,38,32,63,91,194,173,246,21,113,232,232,14,253,213,111,129,207,
103,65,184,133,146,88,110,202,150,18,186,57,219,137,214,189,250,171,239,1,79,155,121,151,107,118,75,117,141,229,186,70,172,25,152,188,193,215,128,109,26,195,50,102,154,255,120,141,126,142,50,224,7,154,
242,184,133,82,161,179,192,228,237,214,93,184,13,254,42,253,213,55,133,119,185,234,124,138,184,184,10,84,239,42,92,55,215,226,171,47,49,215,147,94,83,220,79,27,119,172,240,127,235,116,130,75,126,29,248,
186,224,119,43,220,98,77,176,57,108,32,236,105,124,82,127,60,44,158,36,174,184,30,173,233,16,215,6,43,70,14,116,79,197,51,221,116,208,112,164,202,137,245,151,136,171,91,180,203,180,174,246,187,150,73,
139,175,190,132,6,127,21,189,157,227,234,213,207,129,43,64,208,37,63,139,128,173,154,117,108,24,248,234,75,245,199,3,162,112,203,178,22,61,154,38,138,166,231,91,50,178,243,252,29,219,155,119,158,191,195,
153,142,131,41,133,187,107,95,137,94,2,61,47,157,169,136,93,166,85,251,138,232,106,31,54,199,211,4,104,106,169,101,160,123,74,89,247,83,226,146,127,230,146,159,155,69,168,182,147,167,177,64,136,139,103,
7,29,111,116,192,95,101,118,183,171,60,82,105,133,87,101,236,133,192,51,192,71,192,2,16,245,56,115,159,249,142,9,156,158,152,183,107,181,5,154,53,216,98,92,93,99,57,167,252,87,168,123,225,201,148,123,
40,151,252,214,233,235,234,213,41,81,32,55,144,39,43,215,174,87,153,11,71,147,213,239,105,33,208,55,67,112,34,98,233,145,202,42,11,244,82,108,55,48,8,204,1,11,142,4,219,112,196,208,160,27,61,83,241,205,
211,193,217,150,107,118,209,15,73,156,112,84,78,68,194,81,46,180,222,228,100,219,126,75,5,168,107,44,215,27,23,191,228,49,128,222,206,9,39,245,113,145,228,40,249,64,158,18,108,63,112,72,185,14,83,82,147,
160,253,135,142,238,176,116,125,186,176,85,231,41,56,57,79,112,50,98,165,8,55,129,143,197,10,114,221,104,247,64,247,148,101,221,221,212,178,155,64,95,80,185,228,218,13,146,213,168,22,110,22,36,159,136,
37,249,222,183,129,226,224,100,132,224,100,196,110,40,171,3,58,85,252,87,130,125,176,98,1,139,25,6,245,146,180,157,167,206,115,119,116,23,2,240,1,240,72,14,186,228,102,223,11,173,55,241,117,148,166,172,
191,75,43,188,248,143,215,184,138,119,89,132,101,140,105,205,125,96,86,220,102,178,243,30,86,121,143,131,80,150,39,222,46,31,200,83,214,17,239,213,14,244,220,91,211,18,167,193,95,197,153,142,131,230,196,
224,21,96,70,132,187,32,12,112,220,114,187,208,122,211,242,59,135,142,238,72,233,141,214,81,176,33,224,30,48,38,237,201,161,36,107,222,101,252,87,249,73,174,18,236,123,64,88,185,98,55,193,222,41,52,181,
212,234,154,88,10,148,139,231,136,184,181,218,129,238,169,180,180,55,157,172,221,72,193,198,196,74,103,165,228,186,7,76,37,89,110,220,102,142,8,213,163,11,22,224,87,234,195,91,167,251,215,92,184,222,66,
15,117,47,36,20,217,95,1,254,141,49,181,136,185,197,123,161,245,166,101,227,162,218,87,100,57,205,89,7,193,46,138,69,62,146,21,74,178,220,40,118,174,18,170,89,176,79,235,110,237,108,203,53,222,104,190,
74,87,251,240,154,9,121,207,193,132,100,103,191,150,56,185,22,108,112,50,66,231,249,219,214,237,198,230,26,203,70,204,58,184,99,181,150,76,207,106,197,92,90,108,174,185,243,244,170,196,185,213,197,117,
96,112,149,198,111,209,18,20,243,28,178,180,210,27,119,177,233,226,217,150,196,68,167,88,234,216,249,76,187,58,93,237,195,236,57,88,110,185,127,211,201,90,39,165,88,54,225,21,113,195,15,229,172,201,220,
75,188,118,219,110,213,9,124,148,240,175,17,86,250,236,57,138,179,241,145,93,186,161,179,121,224,107,101,205,222,66,15,77,45,181,41,59,40,38,171,217,37,105,116,4,7,253,98,19,116,35,115,210,139,103,7,57,
117,238,57,203,236,253,208,209,29,116,181,15,175,167,80,119,202,178,5,198,165,6,143,101,87,75,131,113,173,105,18,23,172,155,161,179,173,76,245,195,206,113,203,214,152,9,182,73,2,229,86,176,111,139,182,
123,199,2,33,58,207,221,182,60,143,255,120,13,3,127,187,71,36,28,93,211,49,165,235,4,211,89,162,23,211,92,120,204,209,105,14,248,171,28,199,91,135,109,200,173,100,54,200,126,0,188,9,252,20,140,94,117,
93,99,121,202,120,170,218,141,3,221,83,78,148,207,17,148,85,22,184,74,214,236,12,80,70,19,45,118,84,19,110,92,176,61,202,106,3,125,51,41,99,83,131,52,166,237,10,183,172,178,192,146,56,147,245,207,96,244,
139,55,145,217,13,133,203,24,215,101,143,40,151,108,213,110,244,213,151,208,213,30,90,51,171,43,173,240,174,201,181,153,224,100,68,207,254,103,37,195,86,201,88,92,176,247,157,116,158,178,85,228,79,79,
204,155,173,205,67,118,174,176,252,66,9,54,208,55,147,118,2,100,245,183,255,86,48,25,215,136,57,203,94,213,121,186,213,63,179,110,196,169,97,130,192,176,150,174,103,42,216,0,198,37,54,12,151,124,219,81,
110,240,56,192,135,43,51,102,164,91,21,149,26,57,170,11,54,62,198,234,125,119,220,178,192,207,22,68,194,81,122,223,77,32,238,227,76,234,215,36,240,27,224,31,106,175,116,237,198,199,9,122,59,199,205,22,
123,77,132,170,122,237,113,193,94,211,153,160,93,15,93,51,161,182,181,92,211,247,152,22,139,93,212,220,73,54,224,53,221,117,245,38,106,249,99,43,212,139,109,9,189,133,191,74,61,60,47,157,187,69,96,89,
207,138,79,1,151,116,141,240,55,239,164,174,177,60,107,165,192,88,32,196,64,247,148,126,55,86,193,21,33,74,17,183,148,37,62,244,0,39,129,179,0,23,219,6,179,122,158,245,130,72,56,74,160,47,200,251,29,171,
186,128,65,160,87,106,255,48,43,227,192,37,115,44,123,83,143,77,122,102,87,86,89,144,180,211,100,157,185,205,199,99,155,69,38,125,25,248,187,20,216,67,192,93,33,238,83,85,146,88,117,95,52,188,195,192,
25,224,19,249,60,141,209,112,7,227,39,17,207,154,207,98,7,70,3,33,93,9,213,239,153,134,128,47,2,127,114,131,211,9,152,246,55,11,245,178,208,51,38,52,141,74,34,60,151,44,73,121,9,227,118,254,246,53,86,
196,105,137,237,3,242,121,92,178,187,9,41,125,174,42,97,216,132,63,138,199,9,200,1,167,69,131,145,12,249,82,134,244,78,1,63,6,110,139,226,220,195,184,32,176,125,3,140,248,138,88,234,67,86,70,128,163,66,
227,44,48,159,172,94,252,4,99,210,51,129,49,180,45,151,166,65,54,224,51,224,95,24,99,194,75,162,101,211,66,208,103,66,164,234,161,94,7,190,44,251,167,131,119,36,214,4,5,223,44,137,125,216,0,198,69,175,
70,224,9,151,66,253,131,120,17,133,127,14,227,167,21,110,113,58,129,121,217,251,35,224,247,24,119,155,212,216,111,82,232,155,22,222,69,176,40,43,212,164,96,179,116,131,246,136,235,217,6,212,139,192,243,
48,77,20,146,192,140,16,16,19,77,143,74,252,140,74,44,157,195,24,83,169,239,61,32,113,216,30,195,24,14,212,75,227,98,171,60,235,23,183,135,228,48,33,113,67,227,114,200,144,236,97,62,87,13,198,213,152,
34,193,85,140,113,203,175,32,69,99,100,68,24,246,72,240,42,70,42,5,92,198,184,253,184,83,112,20,10,125,197,178,71,166,63,9,25,145,243,41,126,232,99,191,89,161,233,190,166,204,49,210,212,139,106,112,187,
9,227,146,217,86,86,126,226,160,119,136,60,54,234,79,69,212,178,86,111,45,8,33,115,18,248,231,228,0,42,51,142,153,104,201,151,189,159,208,132,177,89,246,87,135,85,74,18,18,92,201,130,83,174,9,215,54,13,
87,170,230,136,82,196,176,40,223,67,161,87,191,179,164,12,97,139,224,220,134,195,91,151,22,160,90,133,75,66,195,140,118,206,164,243,235,116,141,0,37,92,37,96,117,175,54,95,24,106,22,106,78,10,162,208,
4,187,36,107,81,19,240,130,94,92,39,33,84,209,145,47,52,20,104,66,205,77,226,5,20,190,101,11,111,228,17,60,10,87,174,236,27,53,149,92,49,77,57,23,53,58,151,72,108,188,171,243,123,82,240,39,166,241,39,
102,226,149,162,63,106,50,2,125,15,71,53,254,127,0,98,162,96,30,214,9,10,240,0,0,0,0,73,69,78,68,174,66,96,130,0,0};

const char* ThorAbout::news_item_pic_png = (const char*) resource_ThorAbout_news_item_pic_png;
const int ThorAbout::news_item_pic_pngSize = 2746;
